<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>

</head>
<body>
    <div class="app" v-text="ob"></div>
    <input type="button" value='按钮' v-on:click='show'>
      <script>
        const v1=new Vue({
            el:'input',
            data:{
                ob:'这是我vue第一个实例'
                
            },
            methods:{
                show:function(){
                    alert("你好")
                }
            }
        })
     </script>
     
</body>
</html>